package search;

import search.binary_search.BinarySearch;
import search.binary_search.BinarySearch1;
import search.binary_search.BinarySearch2;
import search.binary_search.BinarySearch3;

/**
 * @author yeyangtao created at 11:50 2020/9/29
 */
public class SearchTest {
    public static void main(String[] args) {
        int[] a = new int[]{1, 2, 3, 4, 5, 6};
        int[] b = new int[]{1, 2, 2, 2, 2, 4, 5};
        binarySearchTest(b);
    }

    private static void binarySearchTest(int[] a) {
        System.out.println(BinarySearch3.binarySearch(a, 4));
    }
}
